package com.apeli.model;

import java.beans.PropertyEditor;
import java.beans.PropertyEditorSupport;

public class StringToUserEditor extends PropertyEditorSupport implements PropertyEditor  {
    @Override
    public void setAsText(String text) throws IllegalArgumentException {
        User user = new User();
        user.setUsername(text);
        this.setValue(user);
    }
}
